<div class="weui_cells weui_cells_form" style="border-radius:0.5rem;">            
				<div class="weui_cells_title" style="padding-left:0">
				<span class="bold" style="color:#18bc9c">{{pagedata.nowkey+1}}</span>
				<span style="color:#18bc9c">[{{pagedata.nowitem.typetitle}}]</span>
				{{pagedata.nowitem.title}}
				</div>
				<div ng-if="pagedata.nowitem.images.length>0" class="remark img">
						<div ng-repeat="img in pagedata.nowitem.images" class="img">
							<img ng-click="pagedata.show_bigimage=true;pagedata.showimage=img" ng-src="{{tomedia(img)}}" />
						</div>
				</div>
				<div ng-if="pagedata.nowitem.type == 4" class="weui_cells weui_cells_radio2">
						<label class="weui_cell weui_check_label dashed" ng-repeat="(key,value) in pagedata.nowitem.xuanxiang">
							<div class="weui_cell_ft" href="javascript:;" ng-click="pagedata.nowitem.data=key;pagedata.checkdanan(i,key);">
								<input type="radio" class="weui_check" ng-checked="pagedata.nowitem.data==key">
								<span class="weui_icon_checked"></span>
							</div>
							<div class="weui_cell_bd weui_cell_primary">
								<span style="float:left;width:100%">{{pagedata.danan_key[key]}}.{{value.title}}</span>
							</div>
							
						</label>
				</div>	
				<div ng-if="pagedata.nowitem.type == 5" class="weui_cells weui_cells_checkbox" style="padding:0.5rem">
						<label class="weui_cell weui_check_label" ng-repeat="(key,value) in pagedata.nowitem.xuanxiang">
							<div class="weui_cell_hd">
								<input type="checkbox" ng-click="duoxuans(key,pagedata.nowitem,'data')" class="weui_check" ng-checked="pagedata.nowitem.data.indexOf(';'+key+';')>=0">
								<i class="weui_icon_checked"></i>
							</div>
							<div class="weui_cell_bd weui_cell_primary">
								<span>{{pagedata.danan_key[key]}}. {{value.title}}</span>
							</div>
						</label>
				</div>
				<div ng-if="pagedata.nowitem.type == 20" class="weui_cells weui_cells_radio2">
						<label class="weui_cell weui_check_label dashed">
							<div class="weui_cell_ft" href="javascript:;"  ng-click="pagedata.nowitem.data=0;pagedata.checkdanan(0);">
								<input type="radio" class="weui_check" ng-checked="pagedata.nowitem.data==0">
								<span class="weui_icon_checked"></span>
							</div>
							<div class="weui_cell_bd weui_cell_primary">
								<span style="float:left;width:100%">{{pagedata.danan_key[0]}}.对</span>
							</div>
						</label>
						<label class="weui_cell weui_check_label dashed">
							<div class="weui_cell_ft" href="javascript:;"  ng-click="pagedata.nowitem.data=1;pagedata.checkdanan(1);">
								<input type="radio" class="weui_check" ng-checked="pagedata.nowitem.data==1">
								<span class="weui_icon_checked"></span>
							</div>
							<div class="weui_cell_bd weui_cell_primary">
								<span style="float:left;width:100%">{{pagedata.danan_key[1]}}.错</span>
							</div>
							
						</label>
				</div>
</div>
<!--图片放大-->
<div ng-if="pagedata.show_bigimage"  class="popup">
	<div class="popup-body">
	<div class="popup-center">
		<div ng-click="pagedata.show_bigimage=false" class="image" style="border-radius: 2rem; height:18rem;background: url({{tomedia(pagedata.showimage)}}) no-repeat 50% 0;background-size:100%;background-position:center center">
		</div>
	</div>
	</div>
</div>
<script type="text/javascript">
scope.pagedata.extradata=scope.pagedata.extradata?scope.pagedata.extradata:{}
scope.pagedata.onitem=function(){
	scope.pagedata.update();
	if(scope.pagedata.nowkey==0){
		scope.message('已经是第一题了！');
		return false
	}
	scope.pagedata.nowkey--;
	scope.pagedata.nowitem=scope.pagedata.post.content[scope.pagedata.nowkey];
	scope.$evalAsync();
}
scope.pagedata.nextitem=function(){
	scope.pagedata.update();
	if(scope.pagedata.nowkey+1==scope.pagedata.allnum){
		scope.message('已经是最后一题了！');
		scope.pagedata.checkpost=true;
		return false
	}
	scope.pagedata.nowkey++;
	scope.pagedata.nowitem=scope.pagedata.post.content[scope.pagedata.nowkey];
	scope.$evalAsync();
}
scope.pagedata.checkdanan=function(key){
	if(scope.pagedata.nowitem.daan!=scope.pagedata.danan_key[key]){
		scope.pagedata.nowitem.iscuo=1;
	}else{
		scope.pagedata.nowitem.iscuo=0;
	}
}
scope.pagedata.update=function(){
	scope.pagedata.post.content[scope.pagedata.nowkey]=scope.pagedata.nowitem;
	scope.post_json('jy_kaoshi/detail/update/',scope.pagedata.post,function(res){
		
	});
}
</script>
